
import 'package:flutter/material.dart';

class BigShowBigImageView extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("大图"),
      ),
      body: GestureDetector(
        child: Image.asset('images/img001.jpg',width: 400,height: 400,fit: BoxFit.cover),
        onTap: (){
          Navigator.pop(context);
        },
      ),
    );
  }
}


class BigHeroImage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Hero BigImage"),
      ),
      body: GestureDetector(
        child: Center(
          child: Hero(
            tag: "img",
            child:
            Image.network("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.c"
                "om%2Fup%2Fallimg%2F4k%2Fs%2F02%2F2109242332225H9-0-lp.jpg&refer="
                "http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0"
                "&g=0n&fmt=auto?sec=1651286080&t=a4306e2d9e190ba4a76e2e5ff97edae9",
              width: 200,
              height: 200,),
          ),
        ),
        onTap: (){
          Navigator.pop(context);
        },
      ),
    );
  }

}